<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>候选人员详细信息</title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>
<style type="text/css">
	.input_width { width:130px }
	.select_width { width:143px }
	.table_td td {border:0}
	.long_input{ width:642px }
    .selectWidth4{width:674px;}
</style>
<script type="text/javascript">
var type = "${param.type}";
var parentTable = parent.$("#"+"${param.parentTab}");	//父页面的表格
var selectRadio = $();									//父页面选中的单选框
var selectTr = $();										//父页面选中的行

if(type=="edit") {
	selectRadio = parentTable.find(":radio:checked");
	selectTr = selectRadio.parents("tr");
}

$(function(){
	$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
	$("#fragment-tab1 select").addClass("select_width");
	
	var submitpsn=selectTr.find("[name$='submit_psn']");//标示是否是申报人
	var isAdminor=false;//根据权限判断是否是单位管理员
	<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
	isAdminor = true;
	</security:authorize>
	

	
	
	if(type=="edit"){
		
		$("input:not(:radio:button),textarea").each(function(){

			var id=$(this).attr("name");
			if(id==null || id=="")
				return true;
			
			var parentObj=selectTr.find("[name$='/"+id+"']");
			var value="";
			if(parentObj.is("span"))
				value=parentObj.text();
			else
				value=parentObj.val();
			//if($(this).is("input"))//初始化input框 不包括radio
				$(this).val(value);
		});
		
		$(":radio").each(function(){//初始化radio框
			var name=$(this).attr("name");
		
			
			var value=$("[name='"+name+"_value']").val();
			if($(this).val()==value)
				$(this).attr("checked",true);
			
		});
		tree();
/* 		changeCardType(); */
		
		if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
			$("#tipsforsbr").show();
			<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
			  $("input[name='card_type_value']").val(1);
			  $("input[name='card_type_name']").val("身份证");
			</security:authorize>
/* 			changeCardType(); */
			//如果不是单位管理员
			if (!isAdminor) {
				$("input,select").each(function(){
					if(!$(this).attr("class")||$(this).attr("class").indexOf("notdisabled")==-1){
						$(this).attr("disabled","true");
						$(this).parent().prev().find(".color_red").html("");
					}
				});
				$("#submit_psn_note").show();//如果是项目负责人，显示如何修改个人信息提示
				
				$("span[name='req_submitpsn']").show();//“通讯地址”申请人为必填
				$("input[name='address']").addClass("required");
				
				$("a,img").removeAttr("onclick");
				
				parent.$("#TB_ajaxWindowTitle").html("编辑候选人信息");
			} else {
				parent.$("#TB_ajaxWindowTitle").html("设置项目负责人");
				$("input[name='zh_name']").attr("disabled", "disabled");
			}
		} else {
			$("#personselect").hide();
		}
	} else {
		$("#personselect").hide();
	}
	
	function savePsn(){
		//填写检查接口
	    ages();
		saveResearch("researchTbl");
		validate($("#fragment-tab1"),"");
		if(!valResult()){
			irisValShowMsg($("#savePsn"));
			return false;
		}
		
		
		
		
		//添加新行
		if(type=="add") {
			addNewRowDeal(parentTable);
		/* 	parent.countPsnNum('persons,researchs','psncnt_total'); */
		}
		
		$("input:not(:radio:button),textarea").each(function(){
			
			var id=$(this).attr("name");
			var parentObj=null;
			
			if(id==null || id=="")
				return true;
			
			//获得父页面的对象
			if(type=="add"){
				parentObj=parentTable.find("tr:last-child").find("[name$='/"+id+"']");
			}else if(type=="edit"){
				parentObj=selectTr.find("[name$='/"+id+"']");
				
			}

			if(parentObj!=null){
				if(parentObj.is("span")){
					parentObj.text($(this).val());	//将值写回父页面
				}
				else{
					parentObj.val($(this).val());
				}
			}
			
		});
		
		if(type=="add"){
			parentTable.find("tr:last :radio").attr("checked",true);
			
		}

		$(".wBox_popup").hide();
		if(confirm("保存成功，是否返回申请书页面")){
/* 			<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
			parent.$("#depart_code").val($("#depart_code").val());//部门信息
			</security:authorize> */
			parent.tb_remove();
			
		}
			
		else if(type=="add"){
			type = "edit";
			selectRadio = parentTable.find(":radio:checked");	//父页面选中的单选框
			selectTr = selectRadio.parents("tr");				//父页面选中的行
		}
	}
	
	$("#savePsn").click(function(){
		setTimeout(savePsn,100);
	});
	
	
/* 	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(parent.$("#depart_code").val());//初始化部门信息
	</security:authorize> */
	
});

function tree(){
	var prof_title_name=$("#prof_title_name").val(); 
	$("#prof_title").val(prof_title_name);
	
	var subject_name=$("#subject_name").val(); 
	$("#subject").val(subject_name);
	
	
	var discipline_name=$("#discipline_name").val(); 
	$("#discipline").val(discipline_name);
	
}

function loadAjaxSelect(selectId,url,params,varParm){
	var submitpsn=selectTr.find("[name$='submit_psn']");//标示是否是申报人
	var isAdminor=false;//根据权限判断是否是单位管理员
	<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
	isAdminor = true;
	</security:authorize>
	$.ajax( {
		url : url,
		type : 'post',
		dataType:'json',
		data : params,
		success : function(data) {
			
			for(var i=0;i<data.length;i++){
				var value=data[i].id;
				var text=data[i].name;		
				$("#"+selectId).append("<option value='"+value+"'>"+text+"</option>");
				

			}
			if(type=="edit" && selectId != "card_type"){//如果是修改，才需要初始化select框的值
				var selectValue=$("[name='"+selectId+"_value']").val();
				$("#"+selectId+" option").each(function(i,obj){
					if($(obj).val()==selectValue){
						setTimeout(function() {
							$(obj).attr("selected",true);
						}, 1);
					}
				});
			}
			if(type=="edit" && selectId == "card_type"){ 
				if(submitpsn.length>0 && submitpsn.val()=="1" && isAdminor){
					$("#"+selectId+" option").each(function(i,obj){
						if($(obj).val()==1){
							setTimeout(function() {
								$(obj).attr("selected",true);
							}, 1);
						}
					});
					$("#"+selectId).attr("disabled",true);
				}else{
					var selectValue=$("[name='"+selectId+"_value']").val();
					$("#"+selectId+" option").each(function(i,obj){
						if($(obj).val()==selectValue){
							setTimeout(function() {
								$(obj).attr("selected",true);
							}, 1);
						}
					});
				}
			}
			
			setDegree();	
		}
	});
	}

function setDegree(){
	
	var degreeText=$("#degree").children("option").filter(":selected").text();

	if(degreeText=="博士"){
		$("#degree_country_required").show();
		$("#degree_year_required").show();
		var itemClass=$("#degree_country").attr("class");
		if(itemClass.indexOf("required")==-1)
			$("#degree_country_value").addClass("required");
			$("#degree_year").addClass("required");
	}else{//关闭最高学位验证
		$("#degree_country_required").hide();
		$("#degree_year_required").hide();
		$("#degree_country_value").removeClass("required");
		$("#degree_year").removeClass("required");
	}
}

/* function changeCardType(){
	var cardTypeObj = $("[name='card_type_value']");
	var cardCodeObj = $("[name='card_code']");
	var mobile = $("#mobile");
	
	if(cardTypeObj.val()=="1"){
		cardCodeObj.addClass("idCard");
		mobile.addClass("mobile");
	} else {
		cardCodeObj.removeClass("idCard");
		mobile.removeClass("mobile");
	}
} */

//选择项目负责人回调
/* function selectPsnCall(data) {
	$(parent.document).find("input[name$='psn_code']").val(data.person.psnCode);
	$("input[name='zh_name']").val(data.person.zhName);
	var gender_value = "";
	var gender_name = "";
	if (data.personExtend.basic_info.gender_value=='F') {
		$("input[name='gender'][value='F']").attr("checked",true);
		gender_value = "F";
		gender_name = "女";
	} else { 
		$("input[name='gender'][value='M']").attr("checked",true);
		gender_value = "M";
		gender_name = "男";
	}
	$("input[name='gender_value']").val(gender_value);
	$("input[name='gender_name']").val(gender_name);
	
	var overseas_value = "";
	var overseas_name = "";
	if (data.personExtend.basic_info.overseas_value=='1') {
		$("input[name='overseas'][value='1']").attr("checked",true);
		overseas_value = "1";
		overseas_name = "是";
	} else { 
		$("input[name='overseas'][value='2']").attr("checked",true);
		overseas_value = "2";
		overseas_name = "否";
	}
	$("input[name='overseas_value']").val(overseas_value);
	$("input[name='overseas_name']").val(overseas_name);
	
	$("#card_type").val("1");
	$("input[name='card_type_value']").val("1");
	$("input[name='card_type_name']").val("身份证");
	$("input[name='card_code']").val(data.personExtend.basic_info.card_code);
	$("#ethnicity").val(data.personExtend.basic_info.ethnicity_value);
	$("input[name='ethnicity_value']").val(data.personExtend.basic_info.ethnicity_value);
	$("input[name='ethnicity_name']").val(data.personExtend.basic_info.ethnicity_name);
	$("#region").val(data.personExtend.basic_info.region_value);
	$("input[name='region_value']").val(data.personExtend.basic_info.region_value);
	$("input[name='region_name']").val(data.personExtend.basic_info.region_name);
	$("#org").val(data.personExtend.basic_info.org_name);
	$("input[name='org_code']").val(data.person.orgCode);
	$("#prof_title").val(data.personExtend.basic_info.prof_title_name);
	$("input[name='prof_title_value']").val(data.personExtend.basic_info.prof_title_value);
	$("input[name='prof_title_name']").val(data.personExtend.basic_info.prof_title_name);
	$("input[name='position']").val(data.personExtend.basic_info.position);
	$("input[name='birthday']").val(data.personExtend.basic_info.birthday);
	$("input[name='tel_work']").val(data.personExtend.contact.tel_work);
	$("#degree").val(data.personExtend.basic_info.degree_value);
	$("input[name='degree_value']").val(data.personExtend.basic_info.degree_value);
	$("input[name='degree_name']").val(data.personExtend.basic_info.degree_name);
	$("#degree_country").val(data.personExtend.basic_info.degree_country_value);
	$("input[name='degree_country_value']").val(data.personExtend.basic_info.degree_country_value);
	$("input[name='degree_country_name']").val(data.personExtend.basic_info.degree_country_name);
	$("input[name='degree_college']").val(data.personExtend.basic_info.degree_college);
	$("input[name='degree_year']").val(data.personExtend.basic_info.degree_year);
	$("#academician").val(data.personExtend.basic_info.academician_value);
	$("input[name='academician_value']").val(data.personExtend.basic_info.academician_value);
	$("input[name='academician_name']").val(data.personExtend.basic_info.academician_name);
	$("#post_doctor").val(data.personExtend.basic_info.post_doctor_value);
	$("input[name='post_doctor_value']").val(data.personExtend.basic_info.post_doctor_value);
	$("input[name='post_doctor_name']").val(data.personExtend.basic_info.post_doctor_name);
	$("input[name='email']").val(data.personExtend.contact.email);
	$("input[name='mobile']").val(data.personExtend.contact.mobile);
	$("#educate").val(data.personExtend.basic_info.educate_value);
	$("input[name='educate_value']").val(data.personExtend.basic_info.educate_value);
	$("input[name='educate_name']").val(data.personExtend.basic_info.educate_name);
	$("input[name='subject_code']").val(data.personExtend.basic_info.subject_code);
	$("input[name='subject_name']").val(data.personExtend.basic_info.subject_name);
	$("input[name='discipline_code']").val(data.personExtend.basic_info.discipline_code);
	$("input[name='discipline_name']").val(data.personExtend.basic_info.discipline_name);
	$("input[name='work_time']").val("");
	$("input[name='fax']").val(data.personExtend.basic_info.fax);
	tree();
	$("input[name='major_work']").val(data.personExtend.contact.major_work);
	
	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(data.person.deptCode);
	</security:authorize>
	
	tb_remove2();
} */



function   ages(){
	var str = $("#birthday").val();
	var   r   =   str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
	if(r==null)return   false;
	var   d=   new   Date(r[1],   r[3]-1,   r[4]);
	if(d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]){ 
		var   Y   =   new   Date().getFullYear();
		$("#age").val(Y-r[1]); 
	}
	
	return("输入的日期格式错误！");
	}  
</script>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
	   
	  if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		
		return false;
		}
	
	
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		
	}
/**
 * 各类公用控件和radio框储存值到隐藏域中(除了tree和智能下拉框外)
 */
function initControlValue(objId){
	
		var name="";
		var obj=$("#"+objId);
	    if(obj.is("select")){
	    	name=obj.attr("name");
	    	obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	    	$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	    	name=obj.attr("name");
	    	if(obj.is(":checked")){//如果被选中
	    		//alert($("#"+objId).val());		
	    		obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	    		$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	    	}
	    	else{
	    		
	    		obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	    	}
	    }else if(obj.is(":checkbox")){
	    	name=obj.attr("name");
	    	if(obj.is(":checked"))//如果被选中
	    		obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	    	else
	    		obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	    	name=obj.attr("id");
	    	obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	    	obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }  	
}

</script>
</head>
<body>

	<div id="tabnav">
		<ul>
			<li class="down" id="tab1" onclick="changeTab(this.id)">
					<a href="###"><span>候选人信息</span></a>
			</li>
		</ul>&nbsp;&nbsp;&nbsp;&nbsp;<span id="tipsforsbr" style="color:red;display:none">如果您需要修改个人信息， 请保存申请书后点击菜单"管理">"个人信息维护"完成修改</span>
	</div>
	
	<div class="tab_box" id="fragment-tab1">
		<table class="t_css" width="100%" border="0" cellpadding="0" label="个人信息" cellspacing="1">
<%-- 		<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
		<input type="hidden" name="depart_code" id="depart_code"  value="" >
        </security:authorize> --%>
		<col width="20%;"/>
		<col width="30%;"/>
		<col width="20%;"/>
		<col width="30%;"/>
		<tr>
			<td nowrap align="right"><c:if test="${param.parentTab=='persons'}" ><span class="color_red">*</span></c:if>姓名：</td>
			<td >
				<input name="zh_name" label="姓名" type="text" <c:choose><c:when test="${param.parentTab=='persons'}" >required class="input_text required maxlength:100" </c:when><c:otherwise> class="input_text  maxlength:100" </c:otherwise></c:choose> value="" maxlength="100"/>
			</td>
			<td align="right">
				<c:if test="${param.parentTab=='persons'}" ><span class="color_red">*</span></c:if>性别：
			</td>
			<td>
				<input type="radio" id="gender_1" name="gender" label="性别" value="M" class="do"  onclick="initControlValue(this.id)" /><label>男</label>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio" id="gender_2" name="gender" value="F" class="do"  onclick="initControlValue(this.id)" /><label>女</label>
				<input type="hidden" name="gender_value" label="性别" class="required" />
				<input type="hidden" name="gender_name" label="" />
			</td>
		</tr>
		
		<tr>
			<td align="right">
				<span class="color_red">*</span>排名：
			</td>
			<td>
				<input type="text" name="rank" label="排名" maxlength="2" onfocus="InitInput.setNumber(this,2,0,0);" class="required "/>
			</td>
			<td align='right'>
				<span class="color_red">*</span>出生年月：
			</td>
          	<td>
			<cpt:date id="birthday"  value="" className="required date beforeToday" label="出生年月" name="birthday" ></cpt:date> 
			<input type='hidden' name='age' id='age' value=""/>
		    </td>
		</tr>
		
		<tr>
			<td align="right"><span class="color_red">*</span>出生地：</td>
			<td>
				<input type="text" maxlength="100" name="birthplace" label="出生地" class="required "/>
				
			</td>
			<td align="right">
				<span class="color_red">*</span>民族：
			</td>
			<td>
				<c:choose>
					<c:when test="${param.parentTab=='persons'}" >
						<cpt:select id="ethnicity"  key="nation"  onChange="initControlValue(this.id)"  cacheable="false"></cpt:select>
					</c:when>
					<c:otherwise>
						<cpt:select id="ethnicity"  key="nation" onChange="initControlValue(this.id)"  cacheable="false"></cpt:select>
					</c:otherwise>
				</c:choose> 
				<input type="hidden" name="ethnicity_value" value="" label="民族" class="required">
				<input type="hidden" name="ethnicity_name" value="">
			</td>
			
		</tr>
		<tr>
			<td align="right"><span class="color_red">*</span>证件类型：</td>
	    	<td >
				<cpt:select id="card_type"  key="id_type1"  onChange="initControlValue(this.id);changeClassDyn1();"></cpt:select>
				<input type="hidden" id="card_type_value" name="card_type_value"  class="required" value="" label="证件类型">
				<input type="hidden"  name="card_type_name" value="">	
			</td>
			<td align="right">
				<span class="color_red">*</span>证件号码：
			</td>
			<td>
				<input type="text" id="idcard" name="card_code" maxlength="18" class="idCard" label="证件号码"/>
			</td>
		</tr>
		
		<tr>
			<td align="right"><span class="color_red">*</span>国籍：</td>
			<td>
				<cpt:select id="region"  key="country" onChange="initControlValue(this.id)"></cpt:select>
				<input type="hidden" name="region_value" value="" class="required" value="" label="国籍"/>
				<input type="hidden" name="region_name" value="" />
			</td>
			<td align="right"><span class="color_red">*</span>行政职务：</td>
			<td>
				<input type="text" label="行政职务" maxlength="100" name="admin_post" class="required" />
			</td>
			
		</tr>
		
		<tr>
			<td align="right">归国人员：</td>
			<td>
         		<input type="radio" id="overseas_1" name="overseas" value="1" class="do"  onclick="initControlValue(this.id);changeClassDyn2();" /><label>是</label>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio" id="overseas_2" name="overseas" value="2" class="do"  onclick="initControlValue(this.id);changeClassDyn2();" /><label>否</label>
				<input type="hidden" id="overseas_value" name="overseas_value" label="归国人员" />
				<input type="hidden" name="overseas_name" label="" />
				<!-- <input type="text" name="back_person" maxlength="100" /> -->
			</td>
			<td align="right"><span class="color_red" id="back_time2" style="display:none">*</span>归国时间：</td>
			<td>
				<cpt:date id="back_time" value="" label="归国时间" name="back_time" ></cpt:date> 
			</td>
			
		</tr>
		<tr>
				<td align="right"><span class="color_red">*</span>工作单位：</td>
				<td>
					<input type="text" maxlength="100" label="工作单位" name="org_name" class="required" />
				</td>
				<td align="right"><span class="color_red">*</span>所在地：</td>
				<td>
					<input type="text" maxlength="100" label="所在地" name="org_place" class="required" />
				</td>
		</tr>
		<tr>
			
		    <td align="right"><span class="color_red">*</span>办公电话：</td>
			<td>
				<input type="text" maxlength="20" label="办公电话" name="work_tel" class="required"/>
			</td>
			
			<td align="right"><span class="color_red">*</span>通讯地址：</td>
			<td>
				<input type="text" name="mailing_address" maxlength="100" class="required" label="通讯地址"/>
			</td>
		</tr>
		<tr>
			<td align="right"><span class="color_red">*</span>邮政编码：</td>
			<td>
				<input type="text" id="post_code" name="post_code" maxlength="6"  class="required" label="邮政编码" />
			</td>
			<td align="right"><span class="color_red">*</span>电子信箱：</td>
			<td>
				<input type="text" name="email" class="required email" label="电子信箱" />
			</td>
			
		</tr>
		<tr>
			
			<td align="right"><span class="color_red">*</span>移动电话：</td>
			<td>
				<input type="text" id="mobile" name="mobile" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);" class="required mobile"   label="移动电话" />
			</td>
			<td align="right"><span class="color_red">*</span>毕业学校：</td>
			<td>
				<input type="text" name="college" maxlength="100" class="required" label="毕业学校"/>
			</td>
		</tr>
		
		<tr>
			<td align="right"><span class="color_red">*</span>毕业时间：</td>
			<td>
				<cpt:date id="graduate_time"  value="" className="required date beforeTomorrow" label="毕业时间" name="graduate_time" ></cpt:date> 
			</td>
			<td align="right"><span class="color_red">*</span>文化程度：</td>
			<td>
				<cpt:select id="degree_education"  key="education1" onChange="initControlValue(this.id);"></cpt:select>
				<input type="hidden" name="degree_education_value"  class="required" value="" label="文化程度">
				<input type="hidden" name="degree_education_name" value="">
				<!-- <input type="text" id="degree_education" maxlength="100" name="degree_education" class="input_text required" label="文化程度" /> -->
			</td>
		</tr>
		<tr>
			<td align="right"><span class="color_red">*</span>技术职称：</td>
			<td>
			
			<cpt:tree key="prof_title" cacheable="false" readonly="true" value="" id="prof_title" name="prof_title"  showPattern="all" shieldPattern="-1" onClick="initTreeValueExt"   label="技术职称" />
			<input type="hidden" id="prof_title_value" name="prof_title_value" value="" class="required"  label="技术职称"/> 
			<input type="hidden" id="prof_title_name" name="prof_title_name" value="" />
			</td>
			<td align="right"><span class="color_red">*</span>专业、专长：</td>
		    <td>
		        <input type="text" label="专业、专长" name="major_work" class="required" maxlength="100"/>
		    </td>
		</tr>
		<tr>
			<td align="right"><span class="color_red">*</span>最高学位：</td>
			<td>
				<cpt:select id="educate"  key="degree" onChange="initControlValue(this.id);"></cpt:select>
				<input type="hidden" name="educate_value"  class="required" value="" label="最高学位">
				<input type="hidden" name="educate_name" value="">
			</td>
			<td align="right">
				<span class="color_red">*</span>党派：
			</td>
			<td>
				<cpt:select id="party1"  key="party1" onChange="initControlValue(this.id);"></cpt:select>
				<input type="hidden" name="party1_value"  class="required" value="" label="党派">
				<input type="hidden" name="party1_name" value="">
				<!-- <input type="text" name="party_groupings" maxlength="100" label="党派" class="required"/> -->
			</td>
		</tr>
		
		<tr>
      		<td align="right">曾获科技奖励情况：</td>
     		<td colspan="3">
     			<textarea rows="9"  style="width:82%;" class="input_textarea maxlength:300" name='award' label="曾获科技奖励情况"></textarea>
				<input type="hidden" name="award_hidden"  id="award_hidden" value="" />
     		</td>
     	</tr>
     	<tr>
     		<td align="right">参加本项目开始时间：</td>
			<td>
				<cpt:date id="start_time"  value="" className="date beforeTomorrow dateCompare:end_time" label="参加本项目开始时间" name="start_time" ></cpt:date> 
			</td>
			<td align="right">参加本项目结束时间：</td>
			<td>
				<cpt:date id="end_time"  value="" className="date beforeTomorrow" label="参加本项目结束时间"   name="end_time" ></cpt:date> 
			</td>
		</tr>
		<tr>
      		<td align="right">参加本项目主要技术贡献：（限300字）</td>
     		<td colspan="3">
     			<textarea rows="9"  style="width:82%;" class="input_textarea maxlength:300" name='contribution' label="参加本项目主要技术贡献"></textarea>
				<input type="hidden" name="contribution_hidden"  id="contribution_hidden" value="" />
     		</td>
     	</tr>
		<tr id="submit_psn_note" style="display:none">
			<td colspan="4">
				<span class="color_gray">如果您需要修改个人信息， 请保存申请书后点击菜单"管理">"个人信息维护"完成修改。</span>
			</td>
		</tr>
		
	</table>

	</div>

	<table width="100%" align="center">
		<tr>
			<td><input type="button"  class="button_01 notdisabled" id="savePsn" value="保存">
				&nbsp;<input type="button" id="cancel" class="button_01 notdisabled" value="取消" onclick="parent.tb_remove();">
			</td>
		</tr>
	</table>
	<br/>
</body>
<script type="text/javascript">
$(function() {
	changeClassDyn1();
	changeClassDyn2();
});

function changeClassDyn1(){
	var value =$("#card_type_value").val();
	if(value=='1'){
		$("#idcard").attr("class","required idCard input_width");
	}else{
		$("#idcard").attr("class","required input_width");
	}
	
}

function changeClassDyn2(){
	var value =$("#overseas_value").val();
	if(value=='1'){
		$("#back_time").attr("class","required date input_width beforeToday");
		$("#back_time2").css("display","");
	}else{
		$("#back_time").attr("class","date input_width beforeToday");
		$("#back_time").val("");
		$("#back_time2").css("display","none");
	}
	
}
</script>
</html>
